package utils.logs;

import hprose.HproseClinetService;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import javax.transaction.Transaction;

import utils.db.TransactionUtil;
import constants.APIConstants;

public class LogsUtils {
	public static void addLogs(int type, long userId, int error,String optDetails,String optResult,String login_account,String real_name,String customer_id) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("type", type);
		map.put("userId", userId);
		map.put("userName", login_account);
		map.put("realName", real_name);
		map.put("error", error);
		map.put("optDetails", optDetails);
		map.put("optResult",optResult );
		map.put("customer_id", customer_id);
		Object[] arguments = new Object[]{map};
		String res = HproseClinetService.synCall(APIConstants.LOGSMI_ADDLOGS, arguments,APIConstants.CUSTOMER_HOST, APIConstants.CUSTOMER_PORT);
	}
}
